<template>
<div>
    <span>您好,{{$store.getters.username}}&nbsp;&nbsp;|</span>
    <span>修改密码&nbsp;&nbsp;|</span>
    <span @click="doLogout()">退出</span>
</div>
</template>
<script>
export default {
name:'AdHeader',
methods: {
   doLogout(){
       this.$store.dispatch('LogOut').then(()=>{
             this.$router.push({ path: '/' })
       })
   }    
}
}
</script>
<style scoped>
*{
    color: white;
}
div>span{
    height: 60px;
    line-height: 60px;
   cursor:pointer
}
</style>
